@extends('admin.base.parent')
@section('content')
<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>

		<ul class="breadcrumb">
			<li>
				<i class="icon-home home-icon"></i>
				<a href="#">主页</a>
			</li>
			<li>
				<a href="#">配置详情页</a>
			</li>
			<li class="active">修改网站配置</li>
		</ul><!-- .breadcrumb -->

		<div class="nav-search" id="nav-search">
			<form class="form-search">
				<span class="input-icon">
					<input type="text" placeholder="搜索" class="nav-search-input" id="nav-search-input" autocomplete="off" />
					<i class="icon-search nav-search-icon"></i>
				</span>
			</form>
		</div><!-- #nav-search -->
	</div>

	<div class="page-content">
		<div class="page-header">
			<h1>
				修改配置
				<small>
					<i class="icon-double-angle-right"></i>
					配置详情
				</small>
			</h1>
		</div><!-- /.page-header -->

		<div class="row">
			<div class="col-xs-12">							
				<!-- PAGE CONTENT BEGINS -->
				<form action="{{ url('admin/configure/details/'.$configure->id) }}" method="post" class="form-horizontal" role="form" enctype='multipart/form-data'>
					{{ csrf_field() }}
					{{ method_field('PUT') }}							
					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-input-readonly"> ID </label>

						<div class="col-sm-9">
							<input readonly="" type="text" class="col-xs-10 col-sm-5" id="form-input-readonly" value="{{ $configure->id }}" name="id" />
						</div>
					</div>									
					
					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 网站标题 </label>

						<div class="col-sm-9">
							<input type="text" id="form-field-1" value="{{ $configure->title }}" class="col-xs-10 col-sm-5" name="title" />
						</div>
					</div>	

					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 网站开关 </label>

						<div class="col-sm-9">
							<select name="switch">
								<option value="1" @if( $configure->switch == 1) selected @endif>开</option>
								<option value="2" @if( $configure->switch == 2) selected @endif>关</option>
							</select>
						</div>
					</div>	

					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 网站关键字 </label>

						<div class="col-sm-9">
							<input type="text" id="form-field-1" value="{{ $configure->keys }}" class="col-xs-10 col-sm-5" name="keys" />
						</div>
					</div>						

					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> logo </label>
						<div class="col-sm-4">
							<label class="block clearfix" width="100">
								<span class="block input-icon input-icon-right">
									<input type="file" class="form-control" value="{{ $configure->logo }}" name="logo" />
									<img src="/admin/upload/{{ $configure->logo }}" height="60">
								</span>
							</label>											
						</div>
					</div>
					
					<div class="clearfix form-actions">
						<div class="col-md-offset-3 col-md-9">
							<button class="btn btn-info" type="submit">
								<i class="icon-ok bigger-110"></i>
								提交
							</button>

							&nbsp; &nbsp; &nbsp;
							<button class="btn" type="reset">
								<i class="icon-undo bigger-110"></i>
								重置
							</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
@endsection